<template lang="jade">
.app-container
  //- .header
    h1.page-title 活动公告
    a.backup.icon-angle-left(href='javascript:history.go(-1)')
  article.weui-article(v-if="node")
    h1 {{ node.title }}
    ul.weui-media-box__info
      .weui-media-box__info__meta 发布时间 {{ node.created | formatTime('yy-mm-dd') }}
    section(v-html="node.body.value")
</template>

<script>
import API from '../api-new'
export default {
  data () {
    return {
      node: null
    }
  },
  mounted () {
    let id = this.$route.params.id
    API.fetchNode(id).then(node => {
      this.node = node
    })
  }
}
</script>
